var mongoose = require("./mongoose");

// 创建用户表骨架
var schema = new mongoose.Schema({
	email: String,     //邮箱
	password: String,      //密码
	userName: String,    //昵称
	time: {type: Date, default: Date.now},    //注册时间
	autograph: String, //签名
	userimg: String,   //用户图像
	follow: [],        //关注列表
	coverFollow:[]     //被关注列表
})


module.exports = mongoose.model('user', schema);
	
